SRCS	:= $(wildcard *.cpp)

CC		= g++
INCPATH	= ../../include
CCFLAG	= -I $(INCPATH) -c -g -O3 -static

FRONT_END_OBJS = 

BACK_END_OBJS = X86.o X86Translator.o X86TraceManager.o

all: $(FRONT_END_OBJS) $(BACK_END_OBJS)
	echo "done!"

$(FRONT_END_OBJS):%.o:%.cpp
	$(CC) $(CCFLAG) $? -o $@

$(BACK_END_OBJS):%.o:%.cpp
	$(CC) $(CCFLAG) $? -o $@

clean:
	rm -rf *.o
